//
//  SINAHeaderMsgItemTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/2/6.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAHeaderMsgItemTableViewCell.h"
#import "SINACircularBeadUtils.h"
#import "SINACalendarUtils.h"

@interface SINAHeaderMsgItemTableViewCell()

//时间
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
//内容
@property (weak, nonatomic) IBOutlet UILabel *title;

@end

@implementation SINAHeaderMsgItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentView.backgroundColor = baseSelectColor;
    [SINACircularBeadUtils makeCircularBead:1 andView:self.contentView andIsSetBackground:YES];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setMsgItemModel:(SINAMsgItemModel *)msgItemModel{
    _msgItemModel = msgItemModel;
    
    self.timeLabel.text = [SINACalendarUtils getDateStringWithTimeStr:msgItemModel.time andFormat:@"yyyy-MM-dd  HH:mm"];
    
    self.title.text=msgItemModel.msgContent;
    
    
}
@end
